#!/bin/bash

echo -n "ID : "
read ID
echo -n "pass : "
read -s PASS
echo ""

while [ "$ID"x != "tomx" ] || [ "$PASS"x != "tomx" ]
do
	echo "loginerr.log : "`date`"  "`tty` > ./loginerr.log
	echo "password error"
	echo -n "ID : "
	read ID
	echo -n "pass : "
	read -s PASS
	echo ""
done

echo ""

echo `cat ./loginerr.log`
echo `cat ./login.log`
echo "welcome : $ID"
echo `uname -r`

echo "login.log : "`date`"  "`tty` > ./login.log
echo ""> ./loginerr.log


